﻿/***********************************************************************************************
 * 
 * ProjectName: WMSSoft.Lib.Interfaces
 * 
 * Description: Provide the Interface to describe a Function used on WinKStart
 * 
 * Created:     12.09.2014
 * 
 * Author:      matthias wagler - matthias@WMSSoft.de
 * 
 * Copyright:   Copyright 2014 by WMSSoft.de
 * 
 * License:     GPLv3
 * 
 * History:     12.09.2014 - matthias wagler matthias@WMSSoft.de   -   Created
 * 
 **********************************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WMSSoft.Lib.Interfaces
{
    /// <summary>
    /// Interface to use to create WinKStart Functions
    /// </summary>
    public interface iWinKStartFunctions
    {
        /// <summary>
        /// Initialize Functions Assembly
        /// </summary>
        void Init();

        /// <summary>
        /// Run the Code for this WinKStart Function
        /// </summary>
        /// <param name="DataSource">DataSource to work with Data from</param>
        /// <param name="Filter">Path to specify the Sub - Folder in DataSource</param>
        /// <param name="Data">Data from GUI to work with</param>
        /// <returns></returns>
        bool Run(Dictionary<string,object> Data);

        /// <summary>
        /// Additional destruction routines
        /// </summary>
        void Destroy();
    }
}
